# 闭包函数

def person():
    money = 0
    def work():
        nonlocal money
        money += 100
        print(money)
    return work

res = person()
res()
res()
res()


